package com.activenetwork.smlite.snippet;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.activenetwork.smlite.page.event.EventsHomeView;
import com.activenetwork.smlite.page.event.EventDetailView.EventBasicSubview;
import com.activenetwork.smlite.page.generic.ModelPage;
import com.activenetwork.util.PageLoader;

public final class EventsSnippet {
	private static Logger logger = LoggerFactory.getLogger(EventsSnippet.class);
	
	public static EventBasicSubview gotoAddEventPage(){
		logger.debug("Click navigation bar - event");
		ModelPage page = PageLoader.load(ModelPage.class);
		EventsHomeView eventsHomeView = (EventsHomeView)page.events();
		logger.debug("Click Add event button");
		return eventsHomeView.clickAddEvent();
		
		//EventComponentView eventCreateGuide = eventsHomeView.clickAddEvent();
		//logger.debug("Choose to skip create event guide and activate the sourcing feature");
		//eventCreateGuide = eventCreateGuide.skipGuide();
		//eventCreateGuide = eventCreateGuide.enableSourcingFeature();
		//return eventCreateGuide.noGuidedDone();
	}

}
